package org.lixf.time;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;

public class TimeTest {
    public static void main(String[] args) {
        System.out.println(LocalDateTime.now());

        ZonedDateTime zdt = ZonedDateTime.now();
        DateTimeFormatter zhFormatter = DateTimeFormatter.ofPattern("yyyy MMM dd EE HH:mm", Locale.CHINA);
        System.out.println(zhFormatter.format(zdt));
    }
}
